package org.kolonitsky.translator;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Alex.Kolonitsky
 */

public class Settings {

    public static final String ENCODING = "UTF-8";

    public static final String TRANSLATION_EXCLUDE_PATTERN = "^[^ ]*(http:/|www\\.|[0-9@_.]+)[^ ]*$";

    public static final Set TRANSLATION_EXCLUDE_MAP_KEYS = new HashSet<String>(Arrays.asList("href", "tabindex", "url", "src", "tab", "width", "height", "true", "false",
                "smallImage", "class", "styleClass", "style", "docSize", "docType", "arrow", "icon", "styleClass", "style", "image", "phone", "type", "isExpandable", "requestType", "color"));


    /**
     * Current key is Alex Kolonitsky's personal key to Google Translation API.
     * We should create independent account for our purposes.
     * */
    public static final String GOOGLE_KEY = "AIzaSyAzLMLA72XP5csBnejFLhadUte1T2uSuvw&";

    /**
     * Current key is Alex Kolonitsky's APP ID.
     * We should create independent account for our purposes.
     * */
    public static final String MICROSOFT_APP_ID = "8B620C134CF3734FC320E0444ABCC5CB78177CE9";

}
